package org.poem.tryWithResource;

import org.poem.tryWithResource.exception.ThrowException;
import org.poem.tryWithResource.service.ThrowExceptionAutoCloseable;
import org.poem.tryWithResource.service.ThrowExceptionService;

public class TestMain {

    /**
     * try  {}  catch
     */
    public static void tryCatch(){
        ThrowExceptionService throwExceptionService = new ThrowExceptionService();
        try {
            throwExceptionService.read();
        } catch (ThrowException e) {
            e.printStackTrace();
        }finally {

        }
    }

    public static void main(String[] args) {


    }
}
